/**
 * 组视图下的设置tab
 */

import React from 'react';
import Nav from '@txdfe/at-nav';
import { Link } from 'utils/router';
import intl from '../../../../../../../../locale';

const { pathResource } = window.FORCE;

export default class groupSettingsNav extends React.Component {
  render() {
    return (
      <React.Fragment>
        <Nav
          style={{ overflow: 'hidden', height: '100%' }}
          selectedKey={this.props.defaultActiveKey}
          maxCount={10}
          {...this.props}
        >
          <Nav.Item
            key="settings"
            container={Link}
            containerProps={{
              to: `/${pathResource.fullPath}/settings`,
            }}
            label={intl.get({
              id: 'code-assets.containers.tab.BasicSettings',
              defaultMessage: '基本设置',
            })}
          />
        </Nav>
      </React.Fragment>
    );
  }
}
